package cn.hyh.core.controller;

import cn.hyh.core.service.ServiceInterface.DicService;
import cn.hyh.core.vo.ResultVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @auther :hyh
 * @desc :
 * @date :2019/7/21
 */
@RestController
@RequestMapping("/dic")
public class DicController {

    @Autowired
    private DicService dicService;

     @RequestMapping(value = "initData",method = RequestMethod.POST)
     public Map<String,Object>  getInitData() {
         Map<String, Object> map = dicService.getInitData();
         return ResultVo.successResult(map);
     }

     @RequestMapping(value = "/initMusic",method = RequestMethod.POST)
    public  Map<String,Object>  initMusic(){
         Map<String, Object> map = dicService.initMusic();
         return ResultVo.successResult(map);
     }


}
